<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<title>人车人</title><link rel="icon" href="/assets/img/titleico.ico" type="image/x-icon">
<link rel="stylesheet" href="/assets/css/bootstrap.min.css">
<link rel="stylesheet" href="/assets/css/admin.css">
<link rel="stylesheet" href="/assets/css/bootstrap-table.min.css">
<style>
	body {
		text-align: center;
	}
	
	button {
		margin-top: 20%;
	}
	
	#alert_sh{
		text-align: center;
	    font-size: 16px;
	    position: fixed;
	    z-index: 9998;
	    left: 50%;
	    top: 50%;
	    margin-top: -25px;
	    padding: 0 20px;
	    height: 50px;
	    line-height: 50px;
	    display: none;
	}
	
	#alert_sh.alert-success {
	    color: #ffffff;
	    background-color: #5cb85c;
	    border-color: #5cb85c;
	}
	
	#alert_sh.alert-warning {
	    color: #ffffff;
	    background-color: #d9534f;
	    border-color: #d9534f;
	}
</style>
<script src="/assets/js/jquery-1.11.0.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/adminsg.js"></script>
<script src="/assets/js/axios.min.js"></script>
</head>
<body>
	<div class="alert alert-success" role="alert" id="alert_sh"></div>
	<form method="post" id="fuiouSignForm" hidden></form>
	<script>
		$(function(){
			var subDom = $("#sub"),
				form = $("#fuiouSignForm")
			
			axios.get("/fuioudq/contract")
   			.then(function(res){
   				var data = res.data.data,
   					html = ""
   				for(var i = 0;i < data.length;i++){
   					html += "<input type='hidden' name='"+ data[i].name +"' value='"+ data[i].value +"' />"
   				}
   				
   				form.attr("action",res.data.url).html(html).submit()
   			})
   			.catch(function(){
   				_x.show_alert_sh("信息有误，不能发起签约！",false)
   			})
		})
	</script>
</body>
</html>